134 Byte Basic Base Converter v1.0
by David Revelj 2001

----------------------------------------------------------------------
Table of Contents

1. Introduction
2. Disclaimer
3. Technical specifications.
4. Usage
5. Frequently asked questions
6. The sourcecode
7. Contact information

----------------------------------------------------------------------
1. Introduction

This is a small base converter written in basic for the TI-83
calculator. It converts positive integers in bases 2 to 16. It
handles very large numbers, 32 bits are no problem.
There is no documentation in the program itself, and no error
handling either. This means that you could easily crash the program
by entering values that it doesn't support. But don't worry, it
won't harm your calculator.

----------------------------------------------------------------------
2. Disclaimer

I don't take any responsibility for any of this. If you think this
program looks suspicous or anything, just leave it alone. It's
public domain, which means you haven't payed for it, and nobody is
forcing you to use it.

----------------------------------------------------------------------
3. Technical specifications

Size:

134 bytes + 1 byte for each additional character in the name.

Speed:

It's not the fastest base converter around but i don't think it's
the slowest either =)

Limitations:

You may only use bases 2 to 16. It's quite easy to extend that though.
If you want the program to use higher bases just add charaxters to the
string in the beginning of the program.
If you should try to use the base 1, the program will get stuck in an
eternity loop, which you will have to break by pressing "ON".

The program only handles positive integers, so don't enter anything
else. If you do so, it will either hang, or give you an answer that
is incorrect.
You may not enter numbers of any size. The largest number that it will
handle correctly is 1e10 in base 10. It's because the calculator will
start rounding the numbers here. So if you enter numbers larger than
this, the answer you'll get from the program will be rounded. But
this shouldn't be a problem, since the number 2^32 is within this
range, you may still convert 32 bit numbers without any problem.

----------------------------------------------------------------------
4. Usage

You will get three prompts:

1st prompt: Enter your number, in any base (from 2 to 16).
2nd prompt: Enter the base of your number.
3rd prompt: Enter the base in which you want your number.

The number in the new base will now be printed on the screen. If the
number should be wider than the screen, use left and right to scroll.

----------------------------------------------------------------------
5. Frequently asked questions

q> Hey! We don't need another base converter. There's already too
   many of them! Are you stupid?

a> Yes I am =) I know there are TONS of base coverters for TI-83
   basic, but I have never seen one as small as this. So if you want
   to save some bytes...

q> I start the thing up, and all I get is a f**king question mark!
   What am I supposed to do?

a> Read this documentation stupid, it's all there.

q> It hangs all the time! Are you serious with this program?

a> No I'm not, and stop giving corrupt values to the program, this
   documentation clearly states the limits of the program. SO READ IT!

q> What's a base converter?

a> It's an animal that lives on the African savannah.

----------------------------------------------------------------------
6. The sourcecode

Note: -> means STO

:"0123456789ABCDEF->Str0
:Input Str1
:DelVar XInput B
:length(Str1->L
:For(A,0,L-1
:-1+inString(Str0,sub(Str1,L-A,1
:X+AnsB^A->X
:End
:Input B
:" ->Str1
:While X>0
:int(X/B->A
:sub(Str0,X-BA+1,1)+Str1->Str1
:A->X
:End
:Str1

----------------------------------------------------------------------
7. Contact information

You may contact me for any reason (except spam and spelling
corrections).

email: 68000@home.se
  icq: 5364792
  irc: dalton @ #cyberpunk @ efnet

[EOF]